import request from '@/utils/request'
const FACEAPIURL = '/plan-producer-server'

//投标项目工程量清单差异及盈亏分析表

/**
 * 编辑投标项目工程量清单差异及盈亏分析表
 * @param data
 */
export function planProfitLossAnalysisEntityUpdateByPrimaryKeySelective(data) {
    return request({
        url: `${FACEAPIURL}/planProfitLossAnalysisEntity/updateByPrimaryKeySelective`,
        method: 'post',
        data
    })
}
/**
 * 查看  投标项目工程量清单差异及盈亏分析表
 * @param data
 */
 export function getPlanProfitLossAnalysisEntityById(data) {
    let version = data.version?`?version=${data.version}`:'';
    return request({
        url: `${FACEAPIURL}/planProfitLossAnalysisEntity/getPlanProfitLossAnalysisEntityById?planId=${data.planId}${version}`,
        method: 'post',
        data
    })
}